package shijian.database.utils;

/**
 * @Description
 * @Author 25316
 * @Date 2024-09-08 9:21
 */
public class StringUtils {
    public static boolean isEmpty(String str) {
        return null == str || str.length() == 0;
    }

    public static boolean isEmpty(Object... objects) {
        return null == objects || objects.length == 0;
    }

    public static String format(String template, Object... params)
    {
        if (isEmpty(params) || isEmpty(template))
        {
            return template;
        }
        return StrFormatter.format(template, params);
    }
}
